﻿/*
 * RM2 Character Generator
 * Copyright (C) 2009 James Culshaw
 * 
 * This program is free software; you can redistribute it and/or modify it under the terms of 
 * the GNU General Public License as published by the Free Software Foundation; either version 2 
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this program; 
 * if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace RMCharGen.Character
{
    public class CharacterSheet
    {

        private Dictionary<StatisticType, Statistic> _statistics;

        public Dictionary<StatisticType, Statistic> Statistics
        {
            get
            {
                return _statistics;
            }
        }

        public Dictionary<int, SkillSelections> SkillSelections { get; set; }

        private void InitialiseStatistics()
        {
            _statistics = new Dictionary<StatisticType, Statistic>();
            Statistic stat = new Statistic(StatisticType.CO);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.AG);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.SD);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.Me);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.Re);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.St);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.Qu);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.Pr);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.In);
            _statistics.Add(stat.Type, stat);
            stat = new Statistic(StatisticType.EM);
            _statistics.Add(stat.Type, stat);
        }

        public CharacterSheet()
        {
            InitialiseStatistics();
            SkillSelections = new Dictionary<int, SkillSelections>();
        }

    }
}
